import request from '@/common/request.js';

//获取坐席的统计数据   今日呼叫   今日订单数据
export function getSeatTodayReport(params) {
	let baseApiUrl = uni.getStorageSync("baseApiUrl");
	let base_url = 'http://' + baseApiUrl + '/';
	
	return request.httpRequest({
		url: base_url + 'api/AppReport/getSeatTodayReport',
		method: 'post',
		loading: true,
		requestHeader: {
			'Content-Type': 'application/x-www-form-urlencoded'
		}
	}, params);
}

//获取坐席的呼叫统计数据   昨日   近一周，近一月
export function getSeatCallReportByTime(params) {
	let baseApiUrl = uni.getStorageSync("baseApiUrl");
	let base_url = 'http://' + baseApiUrl + '/';
	
	return request.httpRequest({
		url: base_url + 'api/AppReport/getSeatCallReportByTime',
		method: 'post',
		loading: true,
		requestHeader: {
			'Content-Type': 'application/x-www-form-urlencoded'
		}
	}, params);
}

//获取坐席的订单统计数据   昨日   近一周，近一月
export function getSeatOrderReportByTime(params) {
	let baseApiUrl = uni.getStorageSync("baseApiUrl");
	let base_url = 'http://' + baseApiUrl + '/';
	
	return request.httpRequest({
		url: base_url + 'api/AppReport/getSeatOrderReportByTime',
		method: 'post',
		loading: true,
		requestHeader: {
			'Content-Type': 'application/x-www-form-urlencoded'
		}
	}, params);
}